package org.lql.shop.cloud.contoller;

import org.lql.shop.cloud.IOrderService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author: lql
 * @date: 2022/7/2 22:32
 * @description: 订单服务
 */
@RestController(value = "/order")
public class OrderController {

    @Resource
    private IOrderService iOrderService;

    @PostMapping(value = "/createOrder")
    public String createOrder(Long orderId) {
        return iOrderService.createOrder(orderId);
    }
}
